import pytz

# 数据库的配置信息
HOSTNAME = '127.0.0.1'
PORT = '3306'
DATABASE = 'book_db'
USERNAME = 'root'
PASSWORD = '123456'
DB_URI = 'mysql+pymysql://{}:{}@{}:{}/{}?charset=utf8'.format(USERNAME, PASSWORD, HOSTNAME, PORT, DATABASE)
SQLALCHEMY_DATABASE_URI = DB_URI

# 停用CSRF保护
WTF_CSRF_ENABLED = False

SECRET_KEY = "SFDSDGBHFGHHFXBVFDFBG"

# 数据库时间设置
TIMEZONE = pytz.timezone('Asia/Shanghai')

# 配置邮箱
# qkmjysolkmglcege
MAIL_SERVER="smtp.qq.com"
MAIL_USE_SSL=True
MAIL_PORT=465
MAIL_USERNAME="1691719995@qq.com"
MAIL_PASSWORD="qkmjysolkmglcege"
MAIL_DEFAULT_SENDER="1691719995@qq.com"